package com.javalab._7thread._4ThreadLocal;

public class MyThread extends Thread {

    private String name;
    private FlashUSB flashUSB;

    public MyThread(String name, FlashUSB flashUSB) {
        this.name = name;
        this.flashUSB = flashUSB;
    }

    @Override
    public void run() {
        // 插入U盘
        Printer.insertUSBFlash(name, flashUSB);
        // 打印A3
        Printer.printA3();
        // 打印A4
        Printer.printA4();
        // 拔出U盘
        Printer.removeUSBFlash();
    }
}
